<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: vgatextcontroller.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('vgatextcontroller_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">vgatextcontroller.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vgatextcontroller_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">  Copyright (c) 2019-2021 Fabrizio Di Vittorio.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">  All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">* This library and related software is available under GPL v3.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">  it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">  (at your option) any later version.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">  GNU General Public License for more details.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">  You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;driver/gpio.h&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabutils_8h.html">fabutils.h</a>&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="swgenerator_8h.html">devdrivers/swgenerator.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="vgacontroller_8h.html">dispdrivers/vgacontroller.h</a>&quot;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;fonts/font_8x14.h&quot;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefabgl.html">fabgl</a> {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#define VGATextController_CHARWIDTH      8    // max 8</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#define VGATextController_CHARWIDTHBYTES ((VGATextController_CHARWIDTH + 7) / 8)</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#define VGATextController_CHARHEIGHT     14</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#define VGATextController_COLUMNS        80</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#define VGATextController_ROWS           34</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#define VGATextController_WIDTH          640</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#define VGATextController_HEIGHT         480</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#define VGATextController_MODELINE       VGA_640x480_60Hz</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classfabgl_1_1_v_g_a_text_controller.html">   86</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_v_g_a_text_controller.html">VGATextController</a>  : <span class="keyword">public</span> <a class="code" href="classfabgl_1_1_textual_display_controller.html">TextualDisplayController</a> {</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <a class="code" href="classfabgl_1_1_v_g_a_text_controller.html">VGATextController</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  ~<a class="code" href="classfabgl_1_1_v_g_a_text_controller.html">VGATextController</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>(gpio_num_t redGPIO, gpio_num_t greenGPIO, gpio_num_t blueGPIO, gpio_num_t HSyncGPIO, gpio_num_t VSyncGPIO);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>(gpio_num_t red1GPIO, gpio_num_t red0GPIO, gpio_num_t green1GPIO, gpio_num_t green0GPIO, gpio_num_t blue1GPIO, gpio_num_t blue0GPIO, gpio_num_t HSyncGPIO, gpio_num_t VSyncGPIO);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">begin</a>();</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">setResolution</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * modeline = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span> viewPortWidth = -1, <span class="keywordtype">int</span> viewPortHeight = -1, <span class="keywordtype">bool</span> doubleBuffered = <span class="keyword">false</span>);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095.html#a6935cf763d0d228200f61930f2141095">setTextMap</a>(uint32_t <span class="keyword">const</span> * map, <span class="keywordtype">int</span> rows);</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8.html#a93fe2c22583c485ebf4f60081f535cf8">adjustMapSize</a>(<span class="keywordtype">int</span> * columns, <span class="keywordtype">int</span> * rows);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="keywordtype">int</span> getColumns()                         { <span class="keywordflow">return</span> VGATextController_COLUMNS; }</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keywordtype">int</span> getRows()                            { <span class="keywordflow">return</span> VGATextController_ROWS; }</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <span class="keywordtype">void</span> enableCursor(<span class="keywordtype">bool</span> value)            { m_cursorEnabled = value; }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  <span class="keywordtype">void</span> setCursorPos(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col)      { m_cursorRow = row; m_cursorCol = col; m_cursorCounter = 0; }</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  <span class="keywordtype">void</span> setCursorSpeed(<span class="keywordtype">int</span> value)           { m_cursorSpeed = value; }</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <span class="keywordtype">void</span> setCursorForeground(<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value);</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  <span class="keywordtype">void</span> setCursorBackground(<a class="code" href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">Color</a> value);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  FontInfo <span class="keyword">const</span> * getFont()               { <span class="keywordflow">return</span> &amp;FONT_8x14; }</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">setResolution</a>(<a class="code" href="structfabgl_1_1_v_g_a_timings.html">VGATimings</a> <span class="keyword">const</span>&amp; timings);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  <span class="keywordtype">void</span> init(gpio_num_t VSyncGPIO);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;  <span class="keywordtype">void</span> setupGPIO(gpio_num_t gpio, <span class="keywordtype">int</span> bit, gpio_mode_t mode);</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="keywordtype">void</span> freeBuffers();</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  <span class="keywordtype">void</span> fillDMABuffers();</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  uint8_t packHVSync(<span class="keywordtype">bool</span> HSync, <span class="keywordtype">bool</span> VSync);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  uint8_t preparePixelWithSync(<a class="code" href="structfabgl_1_1_r_g_b222.html">RGB222</a> rgb, <span class="keywordtype">bool</span> HSync, <span class="keywordtype">bool</span> VSync);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  uint8_t IRAM_ATTR preparePixel(<a class="code" href="structfabgl_1_1_r_g_b222.html">RGB222</a> rgb) { <span class="keywordflow">return</span> m_HVSync | (rgb.<a class="code" href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">B</a> &lt;&lt; VGA_BLUE_BIT) | (rgb.<a class="code" href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">G</a> &lt;&lt; VGA_GREEN_BIT) | (rgb.<a class="code" href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">R</a> &lt;&lt; VGA_RED_BIT); }</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> ISRHandler(<span class="keywordtype">void</span> * arg);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keyword">static</span> <span class="keyword">volatile</span> <span class="keywordtype">int</span>        s_scanLine;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <span class="keyword">static</span> uint32_t            s_blankPatternDWord;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  <span class="keyword">static</span> uint32_t *          s_fgbgPattern;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span>                 s_textRow;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span>                s_upperRow;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  <span class="keyword">static</span> lldesc_t <span class="keyword">volatile</span> * s_frameResetDesc;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  <a class="code" href="structfabgl_1_1_v_g_a_timings.html">VGATimings</a>                 m_timings;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  GPIOStream                 m_GPIOStream;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  <span class="keywordtype">int</span>                        m_bitsPerChannel;  <span class="comment">// 1 = 8 colors, 2 = 64 colors, set by begin()</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;  lldesc_t <span class="keyword">volatile</span> *        m_DMABuffers;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;  <span class="keywordtype">int</span>                        m_DMABuffersCount;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  uint32_t *                 m_lines;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="keywordtype">int</span>                        m_rows;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;  <span class="keyword">volatile</span> uint8_t *         m_blankLine; <span class="comment">// for vertical porch lines</span></div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;  <span class="keyword">volatile</span> uint8_t *         m_syncLine;  <span class="comment">// for vertical sync lines</span></div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  intr_handle_t              m_isr_handle;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;  <span class="comment">// contains H and V signals for visible line</span></div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;  <span class="keyword">volatile</span> uint8_t           m_HVSync;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;  uint8_t *                  m_charData;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;  uint32_t <span class="keyword">const</span> *           m_map;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  <span class="comment">// cursor props</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  <span class="keywordtype">bool</span>                       m_cursorEnabled;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;  <span class="keywordtype">int</span>                        m_cursorCounter; <span class="comment">// trip from -m_cursorSpeed to +m_cursorSpeed (&gt;= cursor is visible)</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;  <span class="keywordtype">int</span>                        m_cursorSpeed;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;  <span class="keywordtype">int</span>                        m_cursorRow;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="keywordtype">int</span>                        m_cursorCol;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;  uint8_t                    m_cursorForeground;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;  uint8_t                    m_cursorBackground;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;};</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;}</div><div class="ttc" id="classfabgl_1_1_v_g_a_text_controller_html"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller.html">fabgl::VGATextController</a></div><div class="ttdoc">Represents the VGA text-only controller. </div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8h_source.html#l00086">vgatextcontroller.h:86</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f_html_ad6dca68b61d96e60ca0062e00390ba9f"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_ad6dca68b61d96e60ca0062e00390ba9f.html#ad6dca68b61d96e60ca0062e00390ba9f">fabgl::RGB222::R</a></div><div class="ttdeci">uint8_t R</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00276">displaycontroller.h:276</a></div></div>
<div class="ttc" id="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2_html_ab0bdf5cca484fb2ba637c39384b27fb2"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_ab0bdf5cca484fb2ba637c39384b27fb2.html#ab0bdf5cca484fb2ba637c39384b27fb2">fabgl::VGATextController::begin</a></div><div class="ttdeci">void begin()</div><div class="ttdoc">This is the 64 colors (8 GPIOs) initializer using default pinout. </div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00129">vgatextcontroller.cpp:129</a></div></div>
<div class="ttc" id="swgenerator_8h_html"><div class="ttname"><a href="swgenerator_8h.html">swgenerator.h</a></div><div class="ttdoc">This file contains fabgl::GPIOStream definition. </div></div>
<div class="ttc" id="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c_html_gab87bacfdad76e61b9412d7124be44c1c"><div class="ttname"><a href="group___enumerations_gab87bacfdad76e61b9412d7124be44c1c.html#gab87bacfdad76e61b9412d7124be44c1c">fabgl::Color</a></div><div class="ttdeci">Color</div><div class="ttdoc">This enum defines named colors. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00202">displaycontroller.h:202</a></div></div>
<div class="ttc" id="classfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8_html_a93fe2c22583c485ebf4f60081f535cf8"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a93fe2c22583c485ebf4f60081f535cf8.html#a93fe2c22583c485ebf4f60081f535cf8">fabgl::VGATextController::adjustMapSize</a></div><div class="ttdeci">void adjustMapSize(int *columns, int *rows)</div><div class="ttdoc">Adjust columns and rows to the controller limits. </div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00070">vgatextcontroller.cpp:70</a></div></div>
<div class="ttc" id="vgacontroller_8h_html"><div class="ttname"><a href="vgacontroller_8h.html">vgacontroller.h</a></div><div class="ttdoc">This file contains fabgl::VGAController definition. </div></div>
<div class="ttc" id="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664_html_a4583a73c34544a3ab09802f045c16664"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a4583a73c34544a3ab09802f045c16664.html#a4583a73c34544a3ab09802f045c16664">fabgl::VGATextController::setResolution</a></div><div class="ttdeci">void setResolution(char const *modeline=nullptr, int viewPortWidth=-1, int viewPortHeight=-1, bool doubleBuffered=false)</div><div class="ttdoc">Sets fixed resolution. </div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00154">vgatextcontroller.cpp:154</a></div></div>
<div class="ttc" id="structfabgl_1_1_v_g_a_timings_html"><div class="ttname"><a href="structfabgl_1_1_v_g_a_timings.html">fabgl::VGATimings</a></div><div class="ttdoc">Specifies the VGA timings. This is a modeline decoded. </div><div class="ttdef"><b>Definition:</b> <a href="vgabasecontroller_8h_source.html#l00099">vgabasecontroller.h:99</a></div></div>
<div class="ttc" id="fabutils_8h_html"><div class="ttname"><a href="fabutils_8h.html">fabutils.h</a></div><div class="ttdoc">This file contains some utility classes and functions. </div></div>
<div class="ttc" id="namespacefabgl_html"><div class="ttname"><a href="namespacefabgl.html">fabgl</a></div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00036">canvas.cpp:36</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea_html_a7c7fb36d372d349a62c14f1e6c7337ea"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_a7c7fb36d372d349a62c14f1e6c7337ea.html#a7c7fb36d372d349a62c14f1e6c7337ea">fabgl::RGB222::B</a></div><div class="ttdeci">uint8_t B</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00278">displaycontroller.h:278</a></div></div>
<div class="ttc" id="fabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors...</div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6_html_aae2a690e4df0bce516938666009b5ea6"><div class="ttname"><a href="structfabgl_1_1_r_g_b222_aae2a690e4df0bce516938666009b5ea6.html#aae2a690e4df0bce516938666009b5ea6">fabgl::RGB222::G</a></div><div class="ttdeci">uint8_t G</div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00277">displaycontroller.h:277</a></div></div>
<div class="ttc" id="structfabgl_1_1_r_g_b222_html"><div class="ttname"><a href="structfabgl_1_1_r_g_b222.html">fabgl::RGB222</a></div><div class="ttdoc">Represents a 6 bit RGB color. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00275">displaycontroller.h:275</a></div></div>
<div class="ttc" id="classfabgl_1_1_textual_display_controller_html"><div class="ttname"><a href="classfabgl_1_1_textual_display_controller.html">fabgl::TextualDisplayController</a></div><div class="ttdoc">Represents the base abstract class for textual display controllers. </div><div class="ttdef"><b>Definition:</b> <a href="displaycontroller_8h_source.html#l00708">displaycontroller.h:708</a></div></div>
<div class="ttc" id="classfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095_html_a6935cf763d0d228200f61930f2141095"><div class="ttname"><a href="classfabgl_1_1_v_g_a_text_controller_a6935cf763d0d228200f61930f2141095.html#a6935cf763d0d228200f61930f2141095">fabgl::VGATextController::setTextMap</a></div><div class="ttdeci">void setTextMap(uint32_t const *map, int rows)</div><div class="ttdoc">Sets text map to display. </div><div class="ttdef"><b>Definition:</b> <a href="vgatextcontroller_8cpp_source.html#l00060">vgatextcontroller.cpp:60</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_10a80204b5b551c852b7cab5e1f7cbce.html">dispdrivers</a></li><li class="navelem"><a class="el" href="vgatextcontroller_8h.html">vgatextcontroller.h</a></li>
    <li class="footer">Generated on Mon Aug 2 2021 07:08:04 for FabGL by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
